// API 相关类型定义

export interface ApiResponse<T = any> {
  code: number;
  data: T;
  message: string;
}

export interface Recommendation {
  id: string;
  title: string;
  description: string;
  category: string;
  icon?: string;
  action?: string;
}

export interface GetRecommendationsResponse {
  recommendations: Recommendation[];
}

export interface GetSessionsResponse {
  sessions: Array<{
    id: string;
    title: string;
    createdAt: number;
    updatedAt: number;
    lastMessage?: string;
  }>;
}

export interface GetSessionDetailResponse {
  session: {
    id: string;
    title: string;
    messages: Array<{
      id: string;
      role: 'user' | 'assistant';
      content: string;
      timestamp: number;
    }>;
  };
}